package org.example.erp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 销售订单产品列表
 * @TableName new_sales_order_item
 */
@TableName(value ="new_sales_order_item")
@Data
public class NewSalesOrderItem implements Serializable {
    /**
     * 销售订单产品id，主键自增
     */
    @TableId(type = IdType.AUTO)
    private Integer salesOrderItemId;

    /**
     * 销售列表编码(明细编码)
     */
    private String salesOrderItemCode;

    /**
     * 销售订单id,关联订单表
     */
    private Integer salesOrderId;

    /**
     * 产品id,关联产品表
     */
    private Integer productId;

    private String productName;

    private String productCode;

    /**
     * 订货数量
     */
    private Integer salesOrderQuantity;

    /**
     * 单价
     */
    private Double amount;

    /**
     * 工单id
     */
    private Integer workorderId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}